package org.scala.test.fun1

import scala.math.Ordering ;
import scala.math.Ordered ;



object MyPredef {

  trait girl2Ording extends Ordering[Girl]{
     override def  compare(x:Girl, y:Girl):Int={
       x.id - y.id
    }
 }
  implicit object Girl extends girl2Ording 

  
  implicit val girlOrding = (g:Girl)=>new Ordered[Girl]{
     override def compare(that: Girl): Int ={
        g.id - that.id
     }
     
  }
  
  
}